﻿using System;

 public  class ChangePasswordBO
 {

       private string _password;
	   private string _userName;
	   private string _oldPassword;
	   private string _newPassword;

        public string NewPassword
        {
            get { return _newPassword; }
            set { _newPassword = value; }
        }

        public string OldPassword
        {
            get { return _oldPassword; }
            set { _oldPassword = value; }
        }

        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }

	   ChangePasswordDAL _ChangePasswordDal = new ChangePasswordDAL();

	   public int ChangePassword()
	   {

		   try
		   {
			 return _ChangePasswordDal.ChangePassword(this);
		   }
		   catch (Exception ex)
		   {
			 throw ex;
		   }
		   finally
		   {
			_ChangePasswordDal = null;
		   }
	   }

  }

